package hl.fildir;

import java.io.*;

public class FileReaderTest {

    public static void main(String[] args){

        try ( var fic = new FileReader("hello.txt") )
        {
            var cbuf = new char[32];
            var hasRead = 0;
            while ((hasRead = fic.read(cbuf)) > 0){
                System.out.print(new String(cbuf, 0, hasRead));
            }
        }
        catch (IOException ioe)
        {
            ioe.printStackTrace();
        }
    }
}
